﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/UserMaster.master"
    Inherits="System.Web.Mvc.ViewPage<Eacademy.Domain.Models.AdminLessonsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>
        <span style="color: #209A06;">
            <%=Model.Title %>
        </span><a href="<%=Url.Action("Index",
                                        new
                                            {
                                                Controller = "Lessons",
                                                id = Model.SubjectId,
                                                mentoruserid = Model.MentorUserId
                                            }) %>" class="back">Back to List</a></h3>
    <div id="lesson-details">
        <%=Model.Lesson %>
    </div>
    Downloads:
    <ul id="files">
        <% 
            foreach (string file in Model.FileList)
            {
        %>
        <li><a href="<%=Url.Action("Download",new{name=file,id=Model.MentorUserId}) %>"><%=file%></a>
        </li>
        <%
            }
        %>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
